package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.HotCountryDao;
import io.renren.entity.HotCountryEntity;
import io.renren.service.HotCountryService;



@Service("hotCountryService")
public class HotCountryServiceImpl implements HotCountryService {
	@Autowired
	private HotCountryDao hotCountryDao;
	
	@Override
	public HotCountryEntity queryObject(Integer id){
		return hotCountryDao.queryObject(id);
	}
	
	@Override
	public List<HotCountryEntity> queryList(Map<String, Object> map){
		return hotCountryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hotCountryDao.queryTotal(map);
	}
	
	@Override
	public void save(HotCountryEntity hotCountry){
		hotCountryDao.save(hotCountry);
	}
	
	@Override
	public void update(HotCountryEntity hotCountry){
		hotCountryDao.update(hotCountry);
	}
	
	@Override
	public void delete(Integer id){
		hotCountryDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		hotCountryDao.deleteBatch(ids);
	}
	
}
